/*
 * Copyright 2007 National Bioinformatics Network
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package dgbgui.modeldocument.definition;



public class RelationTypeDefinition extends Definition implements Cloneable {

    public RelationTypeDefinition(int typeId, String typeName) {
        m_typeId = typeId;
        m_typeName = typeName;
    }


    public String getdgbQLString() {
        return "rt:" + getTypeName();
    }

    public void setTypeName(String typeString) {
        m_typeName = typeString;
    }

    public String getTypeName() {
        return m_typeName;
    }

    /**
     * @return the m_typeId
     */
    public int getTypeID() {
        return m_typeId;
    }

    /**
     * @param id
     * the m_typeId to set
     */
    public void setTypeId(int id) {
        m_typeId = id;
    }
    

    // ------------------- Serialization -------------
    
    /**
     * First serilization version
     */
    private static final long serialVersionUID = 1L;

    
    // ------------ Fields ------------
    
    private int m_typeId;
    private String m_typeName;

}
